<?php
/**
 * Created by PhpStorm.
 * User: 冯轲
 * Date: 2017-12-6
 * Time: 16:48
 */
namespace app\admin\model;

use think\Model;

class Nodes extends Model
{
    //
    protected $table = 'tp_nodes';
    //状态值
    public function getStatusAttr($value)
    {
        $status = [1=>'已禁用',0=>'已启用'];

        return $status[$value];
    }

}